package Com.Isman.WebService.ComplexType;

import java.io.Serializable;

import org.ksoap2.serialization.SoapObject;

public class Order implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private double amount;//'    => array('name' => 'Amount', 'type' => 'xsd:double'),
    private String checkIn;//'   => array('name' => 'CheckIn', 'type' => 'xsd:string'),
    private String checkOut;//'  => array('name' => 'CheckOut', 'type' => 'xsd:string'),
    private double discount;//'  => array('name' => 'Discount', 'type' => 'xsd:double'),
    private String hotelName;//' => array('name' => 'HotelName', 'type' => 'xsd:string'),
    private String notation;//'  => array('name' => 'Notation', 'type' => 'xsd:string')
    private int orderID;
    private int roomCount;//' => array('name' => 'RoomCount', 'type' => 'xsd:int'),
    private String roomName;//'  => array('name' => 'RoomName', 'type' => 'xsd:string'),
    private String status;//'    => array('name' => 'Status', 'type' => 'xsd:string'),
    
    public Order(){}
    public Order(SoapObject soap) {
        orderID		= Integer.parseInt(soap.getProperty("OrderID").toString());
    	hotelName   = soap.getProperty("HotelName").toString();
        roomName   	= soap.getProperty("RoomName").toString();
        roomCount	= Integer.parseInt(soap.getProperty("RoomCount").toString());
        amount  	= Double.parseDouble(soap.getProperty("Amount").toString());
        discount   	= Double.parseDouble(soap.getProperty("Discount").toString());
        status   	= soap.getProperty("Status").toString();
        checkIn   	= soap.getProperty("CheckIn").toString();
        checkOut   	= soap.getProperty("CheckOut").toString();
        notation   	= soap.getProperty("Notation").toString();
	}
	public double getAmount() {
		return amount;
	}
	public String getCheckIn() {
		return checkIn;
	}
	public String getCheckOut() {
		return checkOut;
	}
	public double getDiscount() {
		return discount;
	}
	public String getHotelName() {
		return hotelName;
	}
	public String getNotation() {
		return notation;
	}
	public int getOrderID() {
		return orderID;
	}
	public int getRoomCount() {
		return roomCount;
	}
	public String getRoomName() {
		return roomName;
	}
	public String getStatus() {
		return status;
	}
	public void setAmount(double amount) {
		this.amount = amount;
	}
	public void setCheckIn(String checkIn) {
		this.checkIn = checkIn;
	}
	public void setCheckOut(String checkOut) {
		this.checkOut = checkOut;
	}
	public void setDiscount(double discount) {
		this.discount = discount;
	}
	public void setHotelName(String hotelName) {
		this.hotelName = hotelName;
	}
	public void setNotation(String notation) {
		this.notation = notation;
	}
	public void setOrderID(int orderID) {
		this.orderID = orderID;
	}
	public void setRoomCount(int roomCount) {
		this.roomCount = roomCount;
	}
	public void setRoomName(String roomName) {
		this.roomName = roomName;
	}
	public void setStatus(String status) {
		this.status = status;
	}
}
